<h3>Editar Banca</h3>

<?php
echo $form->create('ExaminingBoard', array('action' => 'edit'));

echo $form->input('final_work_id', array(
   'type'      => 'select',
   'label'     => 'Projeto Final',
   'options'   => $final_works)
);

echo $form->input('data_apresentacao');
echo $form->input('hora_apresentacao');
echo $form->input('local_apresentacao');

$aprov_colegiado = array ( 'ND' => 'Não Julgada', 'S' => 'Aprovada', 'N' => 'Reprovada');
echo $form->input('aprovado_colegiado', array(
   'type'      => 'select',
   'label'     => 'Aprovação do colegiado',
   'options'   => $aprov_colegiado));
   
//echo $form->input('BoardTeacher.teacher_id', array('type' => 'select', 'multiple' =>'true', 'label' => 'Professores'));

echo "<p>Professores nesta banca:</p>";
echo "<ul>";
foreach ($this->data['BoardTeacher'] as $a)
{
   foreach ($teachers as $t)
   {
		if ($a['teacher_id'] == $t['Teacher']['cpf'])
			echo "<li>".$t['Teacher']['nome']."</li>";
   }
}
echo "</ul>";
echo "<br/>";
echo $html->link('Gerenciar professores', '../board_teachers/index/'.$this->data['ExaminingBoard']['id']);


echo $form->end('Alterar Banca');
?>
